package com.wzdigit.wms.wms.api.inventory;

import com.wzdigit.wms.wms.dto.inventory.GoodsDto;

import java.util.List;

public interface GoodsApi {

    /**
     * 插入单条
     * @param record
     * @return
     */
    void insert(GoodsDto record);

    /**
     * 批量插入,返回值是插入失败的ID
     * @param goodsDtoList
     * @return
     */
    List<Integer> batchInsert(List<GoodsDto> goodsDtoList) throws Exception;

    Boolean selectByGoodsSn(String goodSn);
}
